Data Sources (MC)

The MC Data Source connects directly to the Mitsubishi Q/L Series PLCs using the MELSEC Communications Protocol (MC) to read and write PLC device memory locations.

 

Create a new Data Source

 

A Data Source can be defined in Sym3 using the Project Explorer > Data Sources>[Right Click] >[New Source]>[MC]

 

 

 

Note: Browsing is not supported for MC Data Sources.

 

Fill in the IP address or hostname of the PLC in the Hostname field along with the port number that has been created on the PLC for MC service. The port number is required and there is no default. The format is host:port, e.g. 192.168.3.39:4500 or mitsubishi1:4500

The 'Update Rate' is the value in milliseconds between two commands (READ or WRITE). This driver will READ and WRITE alternatively. The image below shows how the update rate is working.

If the driver cannot keep up with the rate specified (for example 5ms) it will work in a mode called "As fast as possible":

Example of configuration:

 

 

 

Adding a MC Tag

Click on the Property Editor option in the Ribbon bar to open the Property Editor Panel.

 

 

Create Tags in the Tag Manager Window using the + button.

Enter a Name for the Tag in Sym3 and the Data Source for the Tag.

Entering a Data Type for tags is optional. The default will be Boolean for bit devices and Word for word devices (refer to table below)

 

The Tag Address is the combination of a 1 to 3 character alphabetic Device Code mnemonic and the numeric address of the Device Point.

Please note that for this Datasource, there's no 'Update Rate' and 'Simulate Tag' properties.

 

By Mitsubishi’s convention, numerical device point addresses are specified in either decimal or hexadecimal radix, specified individually by device with no particular pattern as to which devices use which radix.

 

E.g.

 

The table below lists the device codes, type and address radix for the devices supported by the MC data source.

 

Device NameCodeTypeRadixAddress MinAddress Max
Special relay SMBitDecimalSM0SM2047
Special register SDWordDecimalSD0SD2047
Input XBitHexadecimalX0X1FFF
Output YBitHexadecimalY0Y1FFF
Internal relayMBitDecimalM0M8191
Latch relay LBitDecimalL0L8191
AnnunciatorFBitDecimalF0F2047
Edge relay VBitDecimalV0V2047
Link relayBBitHexadecimalB0B1FFF
Data registerDWordDecimalD0D143359
Link registerWWordHexadecimalW0W1FFF
Timer ContactTSBitDecimalTS0TS2047
Timer Coil TCBitDecimalTC0TC2047
Timer Current value TNWordDecimalTN0TN2047
Retentive Timer ContactSTSBitDecimalNot Yet SupportedNot Yet Supported
Retentive Timer Coil STCBitDecimalNot Yet SupportedNot Yet Supported
Retentive Timer Current value STNWordDecimalNot Yet SupportedNot Yet Supported
Counter ContactCSBitDecimalCS0CS1023
Counter Coil CCBitDecimalCC0CC1023
Counter Current value CNWordDecimalCN0CN1023
Link special relay SBBitHexadecimalSB0SB7FF
Link special register SWWordHexadecimalSW0SW7FF
Direct access input DXBitHexadecimalNot Yet SupportedNot Yet Supported
Direct access output DYBitHexadecimalNot Yet SupportedNot Yet Supported
Index register ZWordDecimalNot Yet SupportedNot Yet Supported
File register - Block switching methodRWordDecimalNot Yet SupportedNot Yet Supported
File register - Serial number access methodZRWordHexadecimalNot Yet SupportedNot Yet Supported

 

Device Types and Data Conversions

Sym3 supported data types:

• Default

• Boolean

• Char

• Byte

• Short

• Word

• Long

• DWord

 

Conversions:

The Mitsubishi Q/L Series PLCs devices are either of 2 fundamental data types, bit or 16-bit word.

When code in the PLC generates 32 or 64 bit values in word device memory, occupying 2 or 4 device points respectively, the values are ordered in little-endian format and addressed accordingly with the lowest device point address being the least significant 16 bits of the larger type.

There is no ability to address or atomically write a single bit to a word device, therefore bit addressing for word devices is not supported.

 

When converting between the PLC types and the Sym3 types the following rules apply

 

Bit devices:

• When reading tag values for any bit device mapped to any of the Sym3 integer types the value of the bit device will be represented in bit 0 of the integer with the remaining bits having the value of zero.

• When setting tags, for any integer Sym3 type, the bit device will be set with the value from bit 0 of the integer and all other bits ignored.

Word devices:

• When reading or writing tag values for any word device mapped to a Sym3 Boolean type the data is read from or written to bit 0 of the addressed device point.

• When reading or writing tag values for any word device mapped to a Sym3 Byte or Char type the data is read from or written to bits 0-7 of the addressed device point.

• When reading or writing tag values for any word device mapped to any of the Sym3 integer types the usual rules apply for the promotion and demotion of integer types.

• When reading or writing tag values for any word device mapped to any of the Sym3 32 or 64 bit integer types the address of the data is the lowest device point word address.